package com.msdemo.goods.service.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
* @comments
* @author zg
* @date 2017年9月28日
*/
@FeignClient("service-order")
public interface OrderServiceClient {

	/**
	 * 调用“订单服务”创建订单
	 * @author zg
	 * @date 2017年9月28日
	 * @param userName
	 * @param goodsId
	 * @return
	 */
	@RequestMapping(value = "/order/create", method = RequestMethod.GET)
	public String createOrder( @RequestParam(value = "userName", required = true) String userName,
							   @RequestParam(value = "goodsId", required = true) String goodsId);
	
}
